﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WsdShop.Model.SearchModels.Activity;
using WsdShop.Model.ViewModels;

namespace WsdShop.IService
{
    public interface IActivityTeam
    {
        /// <summary>
        /// 根据一分钱活动团id获取团信息
        /// </summary>
        /// <param name="skip"></param>
        /// <param name="take"></param>
        /// <param name="activityid"></param>
        /// <param name="total"></param>
        /// <returns></returns>
        V_ActivityTeam GetActivityTeamInfo(int id, ref int total);


        /// <summary>
        /// 分页获取活动列表
        /// </summary>
        /// <param name="search"></param>
        /// <param name="total"></param>
        /// <returns></returns>
        IEnumerable<V_ActivityTeam> GetActivityTeamList(ActivitySearchModel search, ref int total);

        /// <summary>
        /// 修改团
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool EditActivityTeam(Model.ActivityTeam model);


        /// <summary>
        /// 分页获取活动列表
        /// </summary>
        /// <param name="search"></param>
        /// <param name="total"></param>
        /// <returns></returns>
        IEnumerable<V_ActivityTeamMembers> GetActivityTeamMembersList(ActivitySearchModel search, ref int total);
    }
}
